<div class="right">

		<?php if ($own): ?>
<?php echo $this->Html->link(__('添加新日记', true), array('action' => 'add'),array('class'=>'btn')); ?>
			
		<?php endif ?>

</div>
<div class="left">

<div id="note">
	<div class="titles"><?php __($user['User']['username'].'的日记');?></div>
		<?php	foreach ($notes as $note):	?>
		<div class="titled-content">
			<div class="sub-titles"><?php echo $linker->noteLink($note['Note']); ?></div>
			<div class="time"><?php echo $note['Note']['updated']; ?></div>
			<div class="contents"><?php echo $formater->text($note['Note']['body']); ?></div>
			<?php if ($own): ?>
			<div class="actions">
				<?php echo $html->link('修改', '/notes/edit/'.$note['Note']['id']) ?>
				<?php echo $html->link('删除', '/notes/delete/'.$note['Note']['id'],array(),'确实要删除该日记吗？') ?>
			</div>				
			<?php endif ?>

		</div>
	<?php endforeach; ?>
</div>
	<p>
	<?php
	$paginator->options(array('url' => "../../people/{$uid}/diary"));
	echo $this->Paginator->counter(array(
	'format' => __('第 %page% / %pages% 页,  %current% / %count% 条目, 第 %start%到 %end% 条', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array("/people/{$current_user['User']['uid']}/diary"), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array("/people/{$current_user['User']['uid']}/diary"), null, array('class' => 'disabled'));?>
	</div>
</div>
